debian_843471-clipboard_Fix_crash_by_handling_error
authorLiang Guo <guoliang@debian.org>
Sun, 1 Nov 2020 16:10:46 +0000 (16:10 +0000)
committerUtkarsh Gupta <utkarsh@debian.org>
Sun, 1 Nov 2020 16:10:46 +0000 (16:10 +0000)
commit6f1a25a592f5e52717970b2797ad4df8e4f9fe82
tree3f28230602fe0415309682affcf471c915b2889e
parent59909758c04f71821488215b2904b0b7f8ddcedf
debian_843471-clipboard_Fix_crash_by_handling_error

commit 03c016bea939ee4a26e90d80fa1012a993a8ea47
Author: Victor Toso <me@victortoso.com>
Origin: upstream, https://cgit.freedesktop.org/spice/spice-gtk/commit/?id=03c016bea939ee4a26e90d80fa1012a993a8ea47
Bug-Debian: https://bugs.debian.org/843471
Date:   Fri Oct 14 18:12:01 2016 +0200

    clipboard: Fix crash by handling error

    As manual states below, text could be NULL for different reasons and
    we should handle that. I've included a debug message to help
    identifying possible regressions from wayland's clipboard.

    This crash is a regression from 7b0de6217670e0f668aff2949f

     "The text parameter to callback will contain the resulting text if
     the request succeeded, or NULL if it failed. This could happen for
     various reasons, in particular if the clipboard was empty or if the
     contents of the clipboard could not be converted into text form."

    Resolves: rhbz#1384676

Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
Gbp-Pq: Name debian_843471-clipboard_Fix_crash_by_handling_error.patch
src/spice-gtk-session.c